# -*- coding: utf-8 -*-
# @Time : 2024/5/10 8:52 PM 
# @Author : Wayne
# @Email : 1
# @File : compare_list.py
# @Project : young_python_demo
# @DESCRIPTION :

str1 ="JY202404140445,JY202404170110,JY202404170677,JY202404170639,JY202404181827,JY20240419175023,JY202404200499,JY202404200658,JY202404210570,JY202404220380,JY2024042229266,JY202404230125,JY202404230714,JY202404230507,JY2024042479430,JY2024042479519,JY20240424157478,JY202404200141,JY20240419175444,JY202404210223,"

str2 = "JY2024042479519,JY2024042479430,JY202404230507,JY202404210223,JY202404230714,JY2024042229266,JY20240419175444,JY202404200141,JY202404220380,JY202404210570,JY202404200658,JY20240419175023,JY202404181827,JY202404170677,JY202404170110,JY202404140445,JY202404170639,JY202404230125,JY20240424157478,"

set1 = set(str1.split(","))

set2 = set(str2.split(","))

# 找出只在set1中存在的元素

only_in_str1 = set1.difference(set2)

print("只在str1中:", only_in_str1)